import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/basic/pillar/',
    method: 'GET',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/basic/pillar/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/basic/pillar/${query}`,
    method: 'DELETE'
  })
}

// 不分页 列表
export function getListAll(query) {
  return request({
    url: '/basic/pillar/listAll/',
    method: 'GET',
    params: query
  })
}

// 总数查询
export function getListCount(query) {
  return request({
    url: '/basic/pillar/count/',
    method: 'GET',
    params: query
  })
}

// 选择支柱（分页）
export function getList(query) {
  return request({
    url: '/basic/pillar/list/',
    method: 'GET',
    params: query
  })
}

export function getPillarCode(query) {
  return request({
    url: '/basic/pillar/pillarCode/',
    method: 'GET',
    params: query
  })
}
